//
//  ViewController.h
//  唧歪
//
//  Created by MWJ on 15/7/6.
//  Copyright (c) 2015年 MWJ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "HMSideMenu.h"
#import <AVFoundation/AVFoundation.h>
#import <CoreAudio/CoreAudioTypes.h>
#import <AudioToolbox/AudioToolbox.h>
#import "AnnotationView.h"


@interface ViewController : UIViewController<MKMapViewDelegate,CLLocationManagerDelegate,UITextFieldDelegate,AVAudioRecorderDelegate,UIScrollViewDelegate>

@property (weak, nonatomic) IBOutlet MKMapView *mapview;  //地图
@property(nonatomic)NSMutableArray *locationsMutArray;

@property (nonatomic, strong) HMSideMenu *sideMenu;

@property(nonatomic)CLLocationCoordinate2D coordinate;  //位置

@property(nonatomic)double longitude;  //经度

@property(nonatomic)double latitude;   //纬度
@property (weak, nonatomic) IBOutlet UIView *detailsView;
@property (weak, nonatomic) IBOutlet UIImageView *HeadportraitImage;  //头像
@property (weak, nonatomic) IBOutlet UILabel *titleContent;  //帖子前八个字
- (IBAction)down:(id)sender;  //关闭按钮
@property (weak, nonatomic) IBOutlet UILabel *labtime;  //发帖时间
@property (weak, nonatomic) IBOutlet UILabel *labplace;  //发帖地点
@property(nonatomic)NSString *labcount;  //帖子显示时长
- (IBAction)detailsButton:(id)sender;  //详情按钮
- (IBAction)UpButton:(id)sender;
@property (weak, nonatomic) IBOutlet UIView *blackView;
@property (nonatomic) NSMutableArray *locationArray;;
@property (weak, nonatomic) IBOutlet UILabel *countdown;  //倒计时
- (IBAction)currentPosition:(id)sender;
@property (weak, nonatomic) IBOutlet UIButton *UpDown;
@property (weak, nonatomic) IBOutlet UILabel *commentshu;
@property (weak, nonatomic) IBOutlet UILabel *street;
@property (weak, nonatomic) IBOutlet UIButton *localButton;
- (IBAction)xx:(id)sender;
@property (weak, nonatomic) IBOutlet UILabel *xxlab;

@property (retain, nonatomic) AVAudioPlayer *avPlay;
@property (weak, nonatomic) IBOutlet UIButton *message;  //信封


@end

